<!DOCTYPE html>
<html>
<head>
    <title>Basic usage</title>
    <meta charset="utf-8">
    <link href="static/kendoui/examples/content/shared/styles/examples-offline.css" rel="stylesheet">
    <link href="static/kendoui/styles/kendo.common.min.css" rel="stylesheet">
    <link href="static/kendoui/styles/kendo.rtl.min.css" rel="stylesheet">
    <link href="static/kendoui/styles/kendo.default.min.css" rel="stylesheet">
    <link href="static/kendoui/styles/kendo.dataviz.min.css" rel="stylesheet">
    <link href="static/kendoui/styles/kendo.dataviz.default.min.css" rel="stylesheet">
    <script src="static/kendoui/js/jquery.min.js"></script>
    <script src="static/kendoui/js/kendo.all.min.js"></script>
    <script src="static/kendoui/examples/content/shared/js/console.js"></script>
    <script>

    </script>
</head>
<body>
<div id="example" style="width: 980px;height: auto;margin: auto;padding-top: 50px;">
    <div id="grid"></div>
    <script>
        $(document).ready(function () {
            $("#grid").kendoGrid({
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "//demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
                    },
                    pageSize: 20
                },
                height: 550,
                groupable: true,
                sortable: true,
                pageable: {
                    refresh: true,
                    pageSizes: true,
                    buttonCount: 5
                },
                columns: [{
                    template: "<div class='customer-photo'" +
                    "style='background-image: url(../content/web/Customers/#:data.CustomerID#.jpg);'></div>" +
                    "<div class='customer-name'>#: ContactName #</div>",
                    field: "ContactName",
                    title: "Contact Name",
                    width: 240
                }, {
                    field: "ContactTitle",
                    title: "Contact Title"
                }, {
                    field: "CompanyName",
                    title: "Company Name"
                }, {
                    field: "Country",
                    width: 150
                }]
            });
        });
    </script>
</div>
<style type="text/css">
    .customer-photo {
        display: inline-block;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-size: 32px 35px;
        background-position: center center;
        vertical-align: middle;
        line-height: 32px;
        box-shadow: inset 0 0 1px #999, inset 0 0 10px rgba(0,0,0,.2);
        margin-left: 5px;
    }

    .customer-name {
        display: inline-block;
        vertical-align: middle;
        line-height: 32px;
        padding-left: 3px;
    }
</style>
</body>
</html>